﻿@model Kaqaz.Models.Post

@{
    ViewBag.Title = "Edit Post";
    ViewBag.LoadTinyMce = true;
}

<h2>@Resource.Edit</h2>

<div class="data-form">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@Resource.Post</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Summary)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Summary)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Content)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.Content)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TagsString)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TagsString)
            @Html.ValidationMessageFor(model => model.TagsString)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.IsCommentsEnable)
            @Html.LabelFor(model => model.IsCommentsEnable)
            @Html.ValidationMessageFor(model => model.IsCommentsEnable)
        </div>

        <div class="editor-field">
            @Html.EditorFor(model => model.NeedCommentApprove)
            @Html.LabelFor(model => model.NeedCommentApprove)
            @Html.ValidationMessageFor(model => model.NeedCommentApprove)
        </div>

        <p>
            <input type="submit" value="@Resource.Save" />
        </p>
    </fieldset>
}
</div>

<div>
    @Html.ActionLink(@Resource.Back, "Index")
</div>
